home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
PRNTFILE.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
3KB
|
94 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Print_File(cFileName,nLinesPerPage,nPageNum,cExcludeText,lPageNum,lDate,lLin
eNums) --> NIL
PARAMETERS:
cFileName : Text File to Print
nLinesPerPage : Lines per page (Default 66)
nPageNum : Beginning Page Number
cExcludeText : Text criteria to Exclude Lines
lPageNum : Logical - print page numbers if TRUE
lDate : Logical - print date on page header if TRUE
lLineNums : Logical - Print Line numbers if TRUE
SHORT:
Print text to printer (HP LaserJet formatting).
DESCRIPTION:
_Print_File() prints a DOS text file (Source Code, etc) on an HP Laser
Jet specifically.
If the nLinesPerPage argument is not supplied, the default is 55 lines
per page.
If lDate is not specified, the default is TRUE (print date).
If the nPageNum argument is supplied, page numbering begins with that
value, and the internal page number is set to that value also
(subsequent calls to _Print_File() will continue with that page number).
If nPageNum is NOT supplied, the function looks first for it's internal
page number and if present, uses it. If the nPageNum argument is not
supplied and there is no internal page number yet established, page
numbering begins with 1 and 1 becomes the internal page number.
The internal page number is stored in PAGENUM.MEM, thus allowing
subsequent calls to _Print_File() to maintain page numbers across
multiple files. To reset page numbering, either specify the new
beginning page number in nPageNum, or deleted the PAGENUM.MEM file.
If cExcludeText is not specified, all lines of text are printed.
If cExcludeText IS specified, any line in the input file that contains
the text specified in cExcludeText, is skipped.
This function is expicitly designed to work with the HP LaserJet II/III
and the font is set to:
CPI : 16.67 (Condensed)
LPI : 6
Point Size : 8.5
Style : Upright
Stroke : Medium
Typeface : Line Printer
Orient : Port
Left Margin: 5
These settings can collectively be refered to as Internal Font I001 on the
HP LaserJet III.
For a Generic Printer see: PRNTTEXT.PRG: _Print_Text()
_Print_File() makes no check on the printer status output is set to print
and the first line is written. The programmer must make sure there is
a printer available before calling _print_file().
NOTE:
EXAMPLE:
_Print_File('File1.txt',,1)
_Print_File('File2.txt')
Result: File1.txt is printed, beginning page numbers at 1, and then
FILE2.TXT is printed, CONTINUING page numbers from FILE1.TXT (whatever
that page number may be).
_Print_File('File1.txt',,1)
_Print_File('File2.txt',,1)
Result: FILE1.TXT is printed, beginning page numbering at 1, and then
FILE2.TXT is printed, ALSO beginning page numbering at 1.
******************************************************************************/